package com.roadjava.tutor.handler.front;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 未登录/登录 的情况下前端页面控制器
 * @author zhaodaowen
 * @see <a href="http://www.roadjava.com">乐之者java</a>
 */
@Controller
@RequestMapping("/front")
public class FrontHandler{

    /**
     * 主界面
     */
    @GetMapping("/toMain")
    public String toMain(){
        return "front/main";
    }
    /**
     * 到学生发布的需求页面
     */
    @GetMapping("/toStudentDemand")
    public String toStudentDemand() {
        return "front/student/studentDemand";
    }
    /**
     * 到教师求职页面
     */
    @GetMapping("/toTeacherJob")
    public String toTeacherJob(){
        return "front/teacher/teacherJob";
    }
}
